const mongoose = require('mongoose')
const Schema = mongoose.Schema

// user模型
const UserType = {
  username: String,
  password: String,
  gender: Number, //性别
  introduction: String,
  avatar: String,
  role: Number //管理员1，编辑2
}
const UserModel = mongoose.model('user', new Schema(UserType))
module.exports = UserModel
